//
//  ImageUtil.h
//  ImageProcessing
//
//  Created by Evangel on 10-11-23.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#include <OpenGLES/ES1/gl.h>
#include <OpenGLES/ES1/glext.h>

@interface ImageUtil : NSObject {
    
}

+ (CGSize) fitSize: (CGSize)thisSize inSize: (CGSize) aSize;
+ (UIImage *) image: (UIImage *) image fitInSize: (CGSize) viewsize;

//黑白处理
+ (UIImage*)blackWhite:(UIImage*)inImage;
//漫画处理
+ (UIImage*)cartoon:(UIImage*)inImage;
//复古处理
+ (UIImage*)memory:(UIImage*)inImage;
//波普处理
+ (UIImage*)bopo:(UIImage*)inImage;
//扫描线处理
+(UIImage*)scanLine:(UIImage*)inImage;
//对图片进行颜色过滤处理
+(UIImage *)colorizeImage:(UIImage *)baseImage withColor:(UIColor *)theColor;
//对图片进行遮挡处理
+(UIImage *)maskImage:(UIImage *)baseImage withImage:(UIImage *)theMaskImage;
@end
